#define _CRT_SECURE_NO_WARNINGS 1

#include"BSTree.h"

void test1()
{
	BSTree<int> bt1;
	int arr[] = { 8,3,1,10,6,4,7,14,13 };
	for (auto num : arr)
	{
		bt1._Insert(num);
	}

	bt1._show();
	bt1._erase(10);
	bt1._erase(14);
	bt1._erase(13);
	/*cout << endl<< bt1._find(10) << endl;
	cout << bt1._find(12) << endl;*/

	for (auto num : arr)
	{
		bt1._erase(num);
		cout << endl;
		bt1._show();
	}

	bt1._show();
}

void test2()
{
	BSTree<int> bt1;
	int arr[] = { 8,3,1,10,6,4,7,14,13 };
	for (auto num : arr)
	{
		bt1._Insert(num);
	}
	BSTree<int> bt2 = bt1;
	bt2._show();

}

int main()
{
	test1();

	return 0;
}